package com.cnh.o2o.web.shopadmin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
 * 主要用来解析路由并转发到相应的html中
 * @author cnh
 *
 */
@Controller
@RequestMapping(value = "/shopadmin", method={RequestMethod.GET})
public class ShopAdminController {

	@RequestMapping(value="/shopoperation")
	public String shopOperation(){
		//转发至店铺注册/编辑页面
		return "shop/shopoperation";
	}
	@RequestMapping(value="/shoplist")
	public String shopList(){
		//转发至店铺列表页面
		return "shop/shoplist";
	}
	@RequestMapping(value="/shopmanagement")
	public String shopManagement(){
		//转发至店铺管理页面
		return "shop/shopmanagement";
	}
	@RequestMapping(value="/productcategorymanagement")
	public String productCategoryManagement(){
		//转发至商品类别管理页面
		return "shop/productcategorymanagement";
	}
	
	@RequestMapping(value="/productoperation")
	public String productOperation(){
		//转发至商品添加/编辑页面
		return "shop/productoperation";
	}
	
	@RequestMapping(value="/productmanagement")
	public String productManagement(){
		//转发至商品管理页面
		return "shop/productmanagement";
	}
	
	@RequestMapping(value="/productdetail")
	public String showProductDetail(){
		//转发至商品管理页面
		return "shop/productdetail";
	}
	
	@RequestMapping(value="/shopauthmanagement")
	public String shopAuthManagement(){
		//转发至店铺授权页面
		return "shop/shopauthmanagement";
	}
	
	@RequestMapping(value="/shopauthedit")
	public String shopAuthEdit(){
		//转发至授权信息修改页面
		return "shop/shopauthedit";
	}
	
	@RequestMapping(value="/operationsuccess",method=RequestMethod.GET)
	public String operationSuccess(){
		//转发至操作成功页面
		return "shop/operationsuccess";
	}
	
	@RequestMapping(value="/operationfail",method=RequestMethod.GET)
	public String operationFail(){
		//转发至操作失败页面
		return "shop/operationfail";
	}
	
	@RequestMapping(value="/productbuycheck",method=RequestMethod.GET)
	public String productBuyCheck(){
		//转发至店铺的消费记录页面
		return "shop/productbuycheck";
	}
	
	@RequestMapping(value="/usershopcheck",method=RequestMethod.GET)
	public String userShopCheck(){
		//店铺用户积分统计路由
		return "shop/usershopcheck";
	}
	@RequestMapping(value="/awarddelivercheck",method=RequestMethod.GET)
	public String awardDeliverCheck(){
		//店铺用户积分兑换路由
		return "shop/awarddelivercheck";
	}
	
	@RequestMapping(value="/awardoperation",method=RequestMethod.GET)
	public String awardEdit(){
		//奖品编辑页路由
		return "shop/awardoperation";
	}
	@RequestMapping(value="/awardmanagement",method=RequestMethod.GET)
	public String awardManagement(){
		//奖品管理页路由
		return "shop/awardmanagement";
	}
	@RequestMapping(value="/awarddetail",method=RequestMethod.GET)
	public String awardDetail(){
		//奖品详情页路由
		return "shop/awarddetail";
	}
}
